package com.mmall.user.provider.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mmall.user.provider.model.UserAddressDO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author hejianglong
 * @date 2019/10/25
 */
@Repository
public interface UserAddressMapper extends BaseMapper<UserAddressDO> {

    @Select("select * from user_address where user_id = #{userId}")
    UserAddressDO selectDefaultAddressByUserId(Long userId);
}
